package com.example.jwtdemo.mapper;

import com.example.jwtdemo.pojo.Role;
import com.example.jwtdemo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    User findUserByUsername(@Param("userName") String userName);

    List<Role> findRoleByUsername(String userName);
}

